import request from '@/util/request'

// 查询设施列表
export function listStuff(query) {
  return request({
    url: ' /api/stuff/stuff/list',
    method: 'get',
    params: query
  })
}

// 查询设施详细
export function getStuff(id) {
  return request({
    url: ' /api/stuff/stuff/' + id,
    method: 'get'
  })
}

// 新增设施
export function addStuff(data) {
  return request({
    url: ' /api/stuff/stuff',
    method: 'post',
    data: data
  })
}

// 修改设施
export function updateStuff(data) {
  return request({
    url: ' /api/stuff/stuff',
    method: 'put',
    data: data
  })
}

// 删除设施
export function delStuff(id) {
  return request({
    url: ' /api/stuff/stuff/' + id,
    method: 'delete'
  })
}
